package com.dycx.api.controller.app.user;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.dycx.common.RestResponse;
import com.dycx.system.dto.NotifyDTO;
import com.dycx.system.service.NotifyService;
import com.dycx.system.vo.NotifyVO;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;


/**
 * 评论(Comment)表控制层
 *
 * @author wuzongbin
 * @since 2023-12-29 10:53:24
 */
@RestController
@RequestMapping(value = "/app/system/notify")
public class NotifyApiController {
    /**
     * 服务对象
     */
    @Resource
    private NotifyService notifyService;

    @PostMapping("getNotifyPage")
    public RestResponse<Page<NotifyVO>> getNotifyPage(@RequestBody NotifyDTO dto) {
        return RestResponse.success(notifyService.getPage(dto));
    }

}

